/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao;

import entities.ContentEntity;
import entities.RateEntity;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author vasi
 */
@Local
public interface RateEntityFacadeLocal {

    void create(RateEntity rateEntity);

    void edit(RateEntity rateEntity);

    void remove(RateEntity rateEntity);

    RateEntity find(Object id);

    List<RateEntity> findAll();

    List<RateEntity> findRange(int[] range);

    List<ContentEntity> findFullContentsByUid(Long uid);

    int count();

    RateEntity findByUidAndCid(Long uid, Long cid);

    double calculateAvgRate(Long cid);
}
